#pragma once
#include "../lvgl.h"
#define MAX_LIST_ITEMS 10

typedef struct {
    lv_obj_t *container;
    lv_group_t *group;
    lv_obj_t *checkbox_array[MAX_LIST_ITEMS];
    int item_count;
    int focus_index;  // 当前焦点索引
} RadioListPage;

#ifdef __cplusplus
extern "C" {
#endif


RadioListPage* create_radio_list_page(
    lv_obj_t *parent,
    const char *label_title,
    const char *items[],
    int item_count,
    int default_index
) ;


void radio_list_handle_key(RadioListPage *page, uint32_t key);

#ifdef __cplusplus
}
#endif
